<template>
	<view class="container">
		<form @submit="formSubmit" @reset="formReset">
			<uni-transition :duration="1000" :mode-class="'slide-bottom'" :show="true">
				<!-- 1  待审核   2   未通过   3  已通过 -->
				<view class="" v-if="object.adopt_id==2" style="text-align: center;margin: 20rpx 0;">
					<text style="color:#FC3E2C;font-weight: bold;">未通过原因:{{object.fail}}</text>
				</view>
			</uni-transition>
			<view class="container-back">
				<view class="tabbar flex">
					<view class="tabbar-list text-center" :class="{'active':tabbarIndex==item.id}"
						v-for="(item,index) in tabbarListData" :key="index" @click="tabbarChange(item.id)">{{item.name}}
					</view>
				</view>
				<!-- 参团参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团 参团  -->

				<uni-transition :duration="1000" :mode-class="'slide-right'" :show="isRight1">
					<view v-if="tabbarIndex==1">
						<view class="back padding20 margin-top20 " @click="pickerChange">
							<text class="fontColor fontWeight" style="margin-right: 30rpx;margin-left: 10rpx;">时间</text>

							<!-- <text style="color: #999999;">{{rangetime.length==0?'请选择日期范围':rangetime.join('至')}}</text> -->
							<text style="color: #999999;">{{pickerData}}</text>
						</view>
						<view class="back padding20 margin-top20">
							<view class="travle-list-item flex Jbetween Acenter ">
								<view class="flex Acenter " style="flex: 5;">
									<text class="fontWeight" style="color: #515151;">出行前给旅行社的费用</text>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="" name="travel_price"
										:value="travel_price" @input="travel_priceChange" style="flex: 1" />
									<text style="">人民币元</text>
								</view>
							</view>
						</view>
						<view class="back padding20 " style="margin-top: 20rpx;">
							<view style="margin-bottom: 20rpx;font-weight: bold;">旅行途中自行花费</view>
							<view class="flex Jbetween padding-bottom20 ">
								<view class="text28">1)购物花费</view>
								<view class="textColor fontWeight">
									总花费：{{Number(form.cultural?form.cultural:cultural)+Number(form.agriculture?form.agriculture:agriculture)+Number(form.specialty?form.specialty:specialty)+Number(form.other?form.other:other) ||  0}}
									人民币元</view>
							</view>
							<view class="travel-list flex Jbetween Acenter page" style="margin-left: 40rpx;">
								<view class="flex Acenter " style="flex: 5;">
									<view class="block-back inline-block travel-img flex Jcenter Acenter">
										<image style="width: 50rpx;height: 50rpx;" src="../../../static/wenchuang.png"
											mode="">
										</image>
									</view>
									<text class="fontWeight" style="color: #515151;">文创产品</text>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="" name="cultural" style="flex: 1"
										@input="culturalChange" :value="form.cultural" />
									<text style="text-align: right;">人民币元</text>
								</view>
							</view>
							<view class="travel-list flex Jbetween Acenter page" style="margin-left: 40rpx;">
								<view class="flex Acenter " style="flex: 5;">
									<view class="block-back inline-block travel-img flex Jcenter Acenter">
										<image style="width: 50rpx;height: 50rpx;" src="../../../static/nonglin.png"
											mode="">
										</image>
									</view>
									<text class="fontWeight" style="color: #515151;">农林牧渔产品</text>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="" name="agriculture" style="flex: 1"
										:value="form.agriculture" @input="feiagricultureChange" />
									<text style="">人民币元</text>
								</view>
							</view>
							<view class="travel-list flex Jbetween Acenter page" style="margin-left: 40rpx;">
								<view class="flex Acenter " style="flex: 5;">
									<view class="block-back inline-block travel-img flex Jcenter Acenter">
										<image style="width: 50rpx;height: 50rpx;" src="../../../static/techan.png"
											mode="">
										</image>
									</view>
									<text class="fontWeight" style="color: #515151;">特产</text>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="" name="specialty" style="flex: 1"
										:value="form.specialty" @input="specialtyChange" />
									<text style="">人民币元</text>
								</view>
							</view>
							<view class="travel-list flex Jbetween Acenter page" style="margin-left: 40rpx;">
								<view class="flex Acenter " style="flex: 5;">
									<view class="block-back inline-block travel-img flex Jcenter Acenter">
										<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png"
											mode="">
										</image>
									</view>
									<text class="fontWeight" style="color: #515151;">其他</text>
									<input style="flex: 1;margin-left: 10rpx;" type="text" :value="gouwuqita"
										placeholder="具体名目" @input="gouwuqi" />
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="" name="other" style="flex: 1"
										:value="form.other" @input="cantuanotherChange" />
									<text style="">人民币元</text>
								</view>
							</view>
							<view class="travel-list flex Jbetween Acenter " style="margin-top: 20rpx;">
								<view class="flex Acenter " style="flex: 5;">
									<text class=" " style="color: #515151;"><text class="">2)邮电通讯</text></text>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="padding-left30" name="telecom"
										:value="telecom" style="flex: 1" @input="telecomChange" />
									<text style="">人民币元</text>
								</view>
							</view>
							<view class="travel-list flex Jbetween Acenter ">
								<view class="flex Acenter " style="flex: 5;display: flex;">
									<text class=" " style="color: #515151;flex:2;"><text
											class="  Acenter">3)其他</text></text>
									<view class="flex Acenter " style="flex:3;">
										<input style="height: 100%;" type="text" placeholder-style="color:#BFBFBF"
											placeholder="输入具体名目" class="padding-left30" name="otherName"
											:value="otherName" @input="otherNameChange">
									</view>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="padding-left30" name="other_price"
										:value="form.other_price" style="flex: 1" @input="other_priceChange" />
									<text style="">人民币元</text>
								</view>
							</view>
						</view>
						<view class="back padding20 margin-top20">
							<view class="travle-list-item flex Jbetween Acenter ">
								<view class="flex Acenter " style="flex: 5;">
									<text class="fontWeight" style="color: #515151;">上述花费总额</text>
								</view>
								<view class="textColor fontWeight">
									{{Number(form.cultural?form.cultural:cultural)+Number(form.agriculture?form.agriculture:agriculture)+Number(form.specialty?form.specialty:specialty)+Number(form.other?form.other:other)+Number(other_price_off)+Number(telecom)+Number(travel_price)|| 0}}
									人民币元
								</view>
							</view>
						</view>
						<view class="back padding20 margin-top20">
							<view class="travle-list-item flex Jbetween Acenter ">
								<view class="flex Acenter " style="flex: 5;">
									<text class="fontWeight" style="color: #515151;">上述花费所包含人数</text>
								</view>
								<view class="flex Acenter" style="flex: 5;">
									<input type="digit" placeholder="点击输入" class="padding-left30" name="above"
										:value="form.above" />
									<text style="flex: 2;text-align: right;">个</text>
								</view>
							</view>
						</view>
						<view class="back padding20 margin-top20" style="padding-bottom: 100rpx;">
							<view class="back  margin-top20 margin-top20">
								<view class="travle-list-item ">
									<view class="flex Acenter ">
										<text class="fontWeight"
											style="color: #515151;">您在整个旅行过程中产生的花费,采用现金支付的比例为</text>
									</view>
									<view class="flex Acenter">
										<input type="digit" placeholder="点击输入" class="margin-top20" name="proportion"
											:value="proportionText" @blur="proportionBlur" />
										<text style="flex: 2;text-align: right;">%</text>
									</view>
								</view>
							</view>

							<view class="back  ">
								<view class="travle-list-item ">
									<view class="flex Acenter ">
										<text class="fontWeight"
											style="color: #515151;">您在整个旅行过程中产生的花费,采用刷卡支付的比例为</text>
									</view>
									<view class="flex Acenter">
										<input type="digit" placeholder="点击输入" class="margin-top20" name="payby"
											:value="paybyText" @blur="paybyBlur" />
										<text style="flex: 2;text-align: right;">%</text>
									</view>
								</view>
								<view class="flex Acenter margin-top20 ">
									<text class="fontWeight" style="color: #515151;">采用移动支付（支付宝、微信、云闪付等）的比例为</text>
								</view>
								<view class="flex Acenter">
									<input type="digit" placeholder="点击输入" class="margin-top20" name="move"
										:value="move" @blur="paymentBlur2" />
									<text style="flex: 2;text-align: right;">%</text>
								</view>
							</view>
						</view>
					</view>
				</uni-transition>
			</view>
			<!-- 非参团非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团 非参团  -->
			<uni-transition :duration="1000" :mode-class="'slide-right'" :show="isRight2">
				<view v-if="tabbarIndex==2" style="padding-left: 20rpx;padding-right: 20rpx;">
					<view class="back padding20 margin-top20 " @click="pickerChange">
						<text class="fontColor fontWeight" style="margin-right: 30rpx;margin-left: 10rpx;">时间</text>

						<!-- <text style="color: #999999;">{{rangetime.length==0?'请选择日期范围':rangetime.join('至')}}</text> -->
						<text style="color: #999999;">{{pickerData}}</text>
					</view>
					<view class="back padding20 " style="margin-top: 20rpx;">
						<view class="flex Jbetween padding-bottom20 ">
							<view class="fontWeight text28">交通花费</view>
							<view class="textColor fontWeight">
								总花费：{{Number(form1.aircraft?form1.aircraft:aircraft)+Number(form1.train?form1.train:train)+Number(form1.automobile?form1.automobile:automobile)+Number(form1.taxi?form1.taxi:taxi)+Number(form1.car_rental?form1.car_rental:car_rental)+Number(form1.refueling?form1.refueling:refueling)+Number(form1.parking?form1.parking:parking)+Number(form1.road_toll?form1.road_toll:road_toll)+Number(form1.other?form1.other:other) || 0}}
								人民币元</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/feiji.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">飞机</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="aircraft"
									style="flex: 1" @input="aircraftChange" :value="form1.aircraft" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/huoche.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">火车</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="train"
									style="flex: 1" @input="trainChange" :value="form1.train" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qiche.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">汽车</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="automobile"
									style="flex: 1" @input="automobileChange" :value="form1.automobile" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/chuzuche.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">出租车</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="taxi"
									style="flex: 1" @input="taxiChange" :value="form1.taxi" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qichechuzu.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">汽车出租</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="car_rental"
									style="flex: 1" @input="car_rentalChange" :value="form1.car_rental" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/jiayoufei.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">加油费</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="refueling"
									style="flex: 1" @input="refuelingChange" :value="form1.refueling" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/tingchefei.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">停车费</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="parking"
									style="flex: 1" @input="parkingChange" :value="form1.parking" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/guolufei.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">过路费</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="road_toll"
									style="flex: 1" @input="road_tollChange" :value="form1.road_toll" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其它</text>
								<input style="flex: 1;margin-left: 10rpx;" type="text" :value="jiaotongqitamingmu"
									placeholder="具体名目" @input="jiaotongqitamingmuChange" />
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="other"
									style="flex: 1" @input="otherChange" :value="form1.other" />
								<text style="">人民币元</text>
							</view>
						</view>
					</view>
					<view class="back padding20 margin-top20">
						<view class="flex Jbetween padding-bottom20 " style="margin-top: 20rpx;">
							<view class="fontWeight text28">住宿花费</view>
							<!-- <view v-if="object.adopt_id==3" class="textColor fontWeight">
							总花费：{{form1.accomm || 0}} 人民币元
						</view> -->
							<view class="textColor fontWeight">
								总花费：{{Number(form1.hotel?form1.hotel:hotel)+Number(form1.civil?form1.civil:civil)+Number(form1.camp?form1.camp:camp)+Number(form1.other_dation?form1.other_dation:other_dation) || 0}}
								人民币元
							</view>
						</view>
						<view class="text28 fontColor" style="margin-bottom: 20rpx;">1)有住宿花费(不免费)</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/jiudian.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">酒店</text>
								<input style="flex: 1;margin-left: 30rpx;" type="number" placeholder="输入天数"
									@input="jiudiantianChange" :value="jiudiantian" />
								<text style="">天</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="hotel"
									style="flex: 1" @input="hotelChange" :value="form1.hotel" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/minsu.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">民宿</text>
								<input style="flex: 1;margin-left: 30rpx;" type="number" placeholder="输入天数"
									@input="minsutianChange" :value="minsutian" />
								<text style="">天</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="civil"
									style="flex: 1" @input="civilChange" :value="form1.civil" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/yingdi.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">营地</text>
								<input style="flex: 1;margin-left: 30rpx;" type="number" :value="yingditian"
									placeholder="输入天数" @input="yingditianChange" />
								<text style="">天</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="camp"
									style="flex: 1" @input="campChange" :value="form1.camp" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 10;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其它</text>
								<input style="flex: 2;margin-left: 30rpx;" type="text" :value="youzhusuqitamingmu"
									placeholder="具体名目" @input="youzhusuqitaChange" />
								<input style="flex:2.4 " type="number" :value="qitatian" placeholder="输入天数"
									@input="qitatianChange" />
								<text style="">天</text>
							</view>
							<view class="flex Acenter">
								<text style="flex: 5;"></text>
								<input type="digit" placeholder="点击输入" class="" name="other_dation" style="flex: 2;"
									@input="other_dationChange" :value="form1.other_dation" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="text28 fontColor margin-top20" style="margin-bottom: 20rpx;">2)无住宿花费(免费)</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 60rpx;height: 60rpx;" src="../../../static/qinyoujia.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">亲友家</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="family"
									:value="form1.family" />
								<text style="flex: 2;text-align: right;">天</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 60rpx;height: 60rpx;" src="../../../static/xiuxiandujia.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">自有休闲度假居所</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="leisure"
									:value="form1.leisure" />
								<text style="flex: 2;text-align: right;">天</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其它</text>
								<input style="flex: 1;margin-left: 30rpx;" type="text" value="" placeholder="具体名目"
									:value="wuzhusuqitamingmu" @input="wuzhusuqitaChange" />
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="other_nome"
									@input="wuzhusuqitaInput" :value="form1.other_nome" />
								<text style="flex: 2;text-align: right;">天</text>
							</view>
						</view>
					</view>
					<!-- 购物花费 -->
					<view class="back padding20 margin-top20">
						<view class="flex Jbetween padding-bottom20 " style="margin-top: 40rpx;">
							<view class="fontWeight text28">购物花费</view>
							<view class="textColor fontWeight">
								总花费：{{Number(form1.cultural?form1.cultural:cultural)+Number(form1.banimal?form1.banimal:banimal)+Number(form1.specialty?form1.specialty:specialty)+Number(form1.other_shop?form1.other_shop:other_shop) || 0}}
								人民币元
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/wenchuang.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">文创产品</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="cultural"
									style="flex: 1" @input="feiculturalChange" :value="form1.cultural" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/nonglin.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">农林牧渔产品</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="banimal"
									style="flex: 1" @input="banimalChange" :value="form1.banimal" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/techan.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">特产</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="specialty"
									style="flex: 1" @input="feispecialtyChange" :value="form1.specialty" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其它</text>
								<input style="flex: 1;margin-left: 10rpx;" type="text" :value="gouwuhuafeiqitamingmu"
									placeholder="具体名目" @input="gouwuhuafeiqitaChange" name="other_shopName" />
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="other_shop"
									style="flex: 1" @input="other_shopChange" :value="form1.other_shop" />
								<text style="">人民币元</text>
							</view>
						</view>

					</view>
					<!-- 游览花费 -->
					<view class="back padding20 margin-top20">
						<view class="flex Jbetween padding-bottom20 " style="margin-top: 40rpx;">
							<view class="fontWeight text28">游览花费</view>
							<view class="textColor fontWeight">
								总花费：{{Number(form1.scenic?form1.scenic:scenic)+Number(form1.amusement?form1.amusement:amusement)+Number(form1.theme?form1.theme:theme)+Number(form1.venue?form1.venue:venue)+Number(form1.other_ven?form1.other_ven:other_ven) || 0}}
								人民币元</view>
						</view>
						<view class="text28 fontColor margin-top20" style="margin-bottom: 20rpx;">1)游览花费(不免费)</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/jingqumenpiao.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">景区门票</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="scenic"
									style="flex: 1" @input="scenicChange" :value="form1.scenic" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/jingquyoule.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">景区游乐花费</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="amusement"
									style="flex: 1" @input="amusementChange" :value="form1.amusement" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/zhuti.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">主题乐园门票</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="theme"
									style="flex: 1" @input="themeChange" :value="form1.theme" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/changguan.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">场馆门票</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="venue"
									style="flex: 1" @input="venueChange" :value="form1.venue" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其它</text>
								<input style="flex: 1;margin-left: 10rpx;" type="text" :value="youlanmianfeimingmu"
									placeholder="具体名目" @input="other_venNameChange" />
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="other_ven"
									style="flex: 1" @input="other_venChange" :value="form1.other_ven" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="text28 fontColor " style="margin-bottom: 20rpx;margin-top: 30rpx;">2)游览花费(免费)
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 60rpx;height: 70rpx;" src="../../../static/wenhua.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">文化相关场馆(免费)</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="输入名称" class="padding-left30" name="culturales"
									:value="form1.culturales" />
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 60rpx;height: 60rpx;" src="../../../static/gongyuan.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">免费公园(免费)</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="输入名称" class="padding-left30" name="free_park"
									:value="form1.free_park" />
							</view>
						</view>
						<view class=" flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 6;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其它(免费)</text>

							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="输入名称" class="padding-left30" name="other_free"
									@input="youlanqitamianfeiInput" :value="form1.other_free" />
							</view>
						</view>
					</view>
					<!-- 休闲娱乐花费 -->
					<view class="back padding20 margin-top20">
						<view class="flex Jbetween padding-bottom20 " style="margin-top: 40rpx;">
							<view class="fontWeight text28">休闲娱乐花费</view>
							<view class="textColor fontWeight">
								总花费：{{Number(form1.film?form1.film:film)+Number(form1.vocal_concert?form1.vocal_concert:vocal_concert)+Number(form1.music_festival?form1.music_festival:music_festival)+Number(form1.other_section?form1.other_section:other_section) || 0}}
								人民币元</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/dianying.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">电影</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="film"
									style="flex: 1" @input="filmChange" :value="form1.film" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/yanchanghui.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">演唱会</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="vocal_concert"
									style="flex: 1" @input="vocal_concertChange" :value="form1.vocal_concert" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/yinyuehui.png"
										mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">音乐节</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="music_festival"
									style="flex: 1" @input="music_festivalChange" :value="form1.music_festival" />
								<text style="">人民币元</text>
							</view>
						</view>
						<view class="flex Jbetween Acenter page"
							style="border-radius: 15rpx;padding: 10rpx;margin-bottom: 20rpx;margin-left: 40rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<view class="block-back inline-block  flex Jcenter Acenter"
									style="width: 80rpx;height: 80rpx;border-radius: 15rpx;margin-right: 20rpx;">
									<image style="width: 50rpx;height: 50rpx;" src="../../../static/qita.png" mode="">
									</image>
								</view>
								<text class="fontWeight" style="color: #515151;">其他</text>
								<input style="flex: 1;margin-left: 10rpx;" type="text" :value="xiuxianother_venName"
									placeholder="具体名目" @input="xiuxianqitaChange" />
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="other_section"
									@input="other_sectionChange" style="flex: 1" :value="form1.other_section" />
								<text style="">人民币元</text>
							</view>
						</view>
					</view>
					<view class="back padding20 margin-top20">
						<view class="travel-list flex Jbetween Acenter "
							style="margin-top: 10rpx;margin-bottom: 10rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<text class="fontWeight " style="color: #515151;"><text
										style="display: inline-block;height: 15rpx;"></text> <text style="">
										邮电通讯</text></text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="cations"
									style="flex: 1" :value="form1.cations" @input="cationsChange" />
								<text style="">人民币元</text>
							</view>
						</view>
					</view>
					<view class="back padding20 margin-top20">
						<view class="travel-list flex Jbetween Acenter "
							style="margin-top: 10rpx;margin-bottom: 10rpx;">
							<view class="flex Acenter " style="flex: 5;">
								<text class="fontWeight " style="color: #515151;"><text
										style="display: inline-block;height: 15rpx;"></text> <text style="">
										餐饮花费</text></text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="catering_expenses"
									style="flex: 1" :value="form1.catering_expenses" @input="catering_expensesChange" />
								<text style="">人民币元</text>
							</view>
						</view>
					</view>
					<view class="back padding20 margin-top20">
						<view class="travel-list flex Jbetween Acenter " style="margin-top: 20rpx;">
							<view class="flex Acenter " style="flex: 5;display: flex;">
								<text class="fontWeight before" style="color: #515151;flex:2;"><text
										style="display: inline-block;height: 15rpx;"></text><text class="  Acenter"
										style="">其他</text></text>
								<view class="flex Acenter " style="flex:3;">
									<input style="height: 100%;" type="text" placeholder-style="color:#BFBFBF"
										placeholder="输入具体名目" class="padding-left30" name="other_teleName"
										@input="other_teleNameChange" :value="other_teleName">
								</view>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="other_tele"
									style="flex: 1;" @input="other_teleChange" :value="other_tele" />
								<text style="">人民币元</text>
							</view>
						</view>
					</view>
					<view class="back padding20 margin-top20">
						<view class="travle-list-item flex Jbetween Acenter ">
							<view class="flex Acenter " style="flex: 5;">
								<text class="fontWeight" style="color: #515151;">上述花费总额</text>
							</view>
							<view v-if="object.adopt_id==2" class="textColor fontWeight">
								{{form1.total_above || 0}} 人民币元
							</view>
							<view v-else class="textColor fontWeight">
								{{Number(form1.aircraft?form1.aircraft:aircraft)+Number(form1.train?form1.train:train)+Number(form1.automobile?form1.automobile:automobile)+Number(form1.taxi?form1.taxi:taxi)+Number(form1.car_rental?form1.car_rental:car_rental)+Number(form1.refueling?form1.refueling:refueling)+Number(form1.parking?form1.parking:parking)+Number(form1.road_toll?form1.road_toll:road_toll)+Number(form1.other?form1.other:other)+Number(form1.hotel?form1.hotel:hotel)+Number(form1.civil?form1.civil:civil)+Number(form1.camp?form1.camp:camp)+Number(form1.other_dation?form1.other_dation:other_dation)+Number(form1.cultural?form1.cultural:cultural)+Number(form1.banimal?form1.banimal:banimal)+Number(form1.specialty?form1.specialty:specialty)+Number(form1.other_shop?form1.other_shop:other_shop)+Number(form1.scenic?form1.scenic:scenic)+Number(form1.amusement?form1.amusement:amusement)+Number(form1.theme?form1.theme:theme)+Number(form1.venue?form1.venue:venue)+Number(form1.other_ven?form1.other_ven:form1.other_ven)+Number(form1.film?form1.film:film)+Number(form1.vocal_concert?form1.vocal_concert:vocal_concert)+Number(form1.music_festival?form1.music_festival:music_festival)+Number(form1.other_section?form1.other_section:form1.other_section)+Number(cations)+Number(other_tele) || 0}}
								人民币元
							</view>
						</view>
					</view>
					<view class="back padding20 margin-top20">
						<view class="travle-list-item flex Jbetween Acenter ">
							<view class="flex Acenter " style="flex: 5;">
								<text class="fontWeight" style="color: #515151;">上述花费所包含人数</text>
							</view>
							<view class="flex Acenter" style="flex: 5;">
								<input type="digit" placeholder="点击输入" class="padding-left30" name="total_people"
									:value="form1.total_people" />
								<text style="flex: 2;text-align: right;">个</text>
							</view>
						</view>
					</view>
					<view class="back " style="margin-top: 20rpx;">
						<view class="back " style="padding: 20rpx;">
							<view class="travle-list-item ">
								<view class="flex Acenter ">
									<text class="fontWeight" style="color: #515151;">您在整个旅行过程中产生的花费,采用现金支付的比例为</text>
								</view>
								<view class="flex Acenter">
									<input type="digit" placeholder="点击输入" class="margin-top20" name="cash"
										:value="form1.cash" @blur="cashBlur" />
									<text style="flex: 2;text-align: right;">%</text>
								</view>
								<view class="flex Acenter margin-top20">
									<text class="fontWeight" style="color: #515151;">采用刷卡支付的比例为</text>
								</view>
								<view class="flex Acenter   ">
									<input type="digit" placeholder="点击输入" class="margin-top20" name="card_payment"
										:value="form1.card_payment" @blur="card_paymentBlur" />
									<text style="flex: 2;text-align: right;">%</text>
								</view>
								<view class="flex Acenter margin-top20 ">
									<text class="fontWeight" style="color: #515151;">采用移动支付（支付宝、微信、云闪付等）的比例为</text>
								</view>
								<view class="flex Acenter">
									<input type="digit" placeholder="点击输入" class="margin-top20" name="payment"
										:value="form1.payment" @blur="paymentBlur" />
									<text style="flex: 2;text-align: right;">%</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</uni-transition>
			<view class="button-submit">
				<view class="button">
					<button formType="submit"
						style="margin-top: 0; width: 100%">{{object.adopt_id==2?'重新提交':"提交"}}</button>
				</view>
			</view>
		</form>
		<!-- 日期选择器 -->
		<mx-date-picker :show="showPicker" :type="type" :value="pickerData" :show-tips="true" :begin-text="'开始'"
			:end-text="'结束'" :show-seconds="false" @confirm="pickerConfirm" @cancel="pickerCancle" />

		<!-- 已记账超过三次传小票弹窗 -->
		<!-- 下载弹窗 -->
		<u-popup width="90%" v-model="isGetBill" borderRadius='10' mode="center" closeable>
			<view>
				<view style="padding: 0 20rpx;margin-top:40rpx;">
					<view class="text-center fontWeight text30" style="color:#5CBCFC">温馨提示</view>
					<view class="text28 fontWeight " style="color: #606266;margin-top: 20rpx;margin-bottom:20rpx">
						您本月上传记账次数已超过3次，请上传消费小票凭证（1-5张图片）
					</view>
				</view>
				<!-- 	@afterRead="afterRead":action="action"
					@delete="deletePic" :max-size="4 * 1024 * 1024" width="150" height="150"action：上传文件接口。
						max-size：文件最大尺寸。
						max-count：文件最大上传数量。
						oversize：文件超出大小限制执行的函数。
						on-choose-complete：上传执行函数。-->
				<u-upload style="padding: 0 20rpx;" action="https://jizhang.xqyu.cn/index.php/api/index/upload"
					@on-choose-complete="afterReadImgs" ref="uUploadMultiple" uploadText="添加小票" :fileList="fileList5"
					name="5" multiple :maxCount="5"></u-upload>

				<view style="display: flex;padding-bottom: 10rpx;">
					<button
						style="margin-rgiht:20rpx;height: 70rpx;line-height: 70rpx;font-size: 30rpx;width:45%;font-weight: bold;color: #606266;"
						type="default" @click="isGetBill=false">取消</button>
					<button
						style="height: 70rpx;line-height: 70rpx;background: linear-gradient(159deg, #80e6fc 0%, #0051ff 99%);font-size: 30rpx;color:#FFFFFF;width:45%;font-weight: bold;"
						type="default" @click="uploadSubmit">确定提交</button>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	import MxDatePicker from '../com/mx-datepicker/mx-datepicker.vue'
	import utils from '../../../utils/util.js'
	export default {
		components: {
			MxDatePicker
		},
		data() {
			return {
				jizhangType: "", //记账类型
				transShow: false,
				isRight1: true,
				isRight2: false,
				object: {
					adopt_id: "", //审核是否通过
					fail: "记账内容需重新提交，有问题请联系联络人。", //未通过原因
					type_id: "" //1  参团   2  非参团
				},

			 jizhang_score: 0, //记账积分
				fileList5: [],
				multipleImgs: [], //用于临时存储上传好返回的新路径 多张图片
				multipleImgsListData: [], //传递的多张图片
				isGetBill: false, //本月是否有记账
				// 参团绑定数据
				form: {
					above: '', //上述花费所包含人数
					other_price: "", //其它花费元
					cultural: '', //文创产品
					agriculture: '', //农林牧鱼产品
					specialty: '', //特产
					other: '' //其它
				},
				// 非参团绑定数据
				form1: {
					catering_expenses:"",//餐饮花费
					cations: '', //邮电通讯
					total_above: '', //上述花费总额
					total_people: '', //上述花费所包含人数
					trans: '', //交通花费
					aircraft: '', //飞机
					train: '', //火车
					automobile: '', //汽车
					taxi: '', //出租车
					car_rental: '', //汽车租车
					refueling: '', //加油费
					parking: '', //停车费
					road_toll: '', //过路费
					other: '', //交通花费里的其他
					accomm: '', //住宿花费
					hotel: '', //酒店
					civil: '', //民宿
					camp: '', //营地
					other_dation: '', //住宿花费不免费里的其他花费
					family: '', //亲友家
					leisure: '', //自有休闲度假所
					other_nome: '', //住宿花费免费里的其他花费
					cultural: '', //文创产品
					banimal: '', //农林牧鱼产品
					specialty: '', //特产
					other_shop: '', //购物花费里的其他
					cost: '', //游览花费
					scenic: '', //景区门票
					amusement: '', //景区游乐花费
					theme: '', //主题乐园
					venue: '', //场馆门票
					other_ven: '', //游览花费不免费里的其他
					culturales: '', //文化相关场馆
					free_park: '', //免费公园
					other_free: '', //游览花费免费里的其他
					leisures: '', //休闲娱乐花费
					film: '', //电影
					vocal_concert: '', //演唱会
					music_festival: '', //音乐节
					other_section: '', //休闲娱乐花费里的其它
					payment: '', //移动支付比例
					card_payment: '', //刷卡支付比例
					cash: '' //现金支付比例
				},
				showPicker: false, //是否显示日期
				type: 'rangetime', //日期范围模式
				pickerData: '请选择时间范围', //最终选择的日期时间
				// 赋值的日期范围
				rangetime: [],
				star_time: '',
				end_time: '',
				tabbarIndex: 1, //tabbar导航栏默认切换
				user_type: '', //用户类型  法人 自然人 联络人
				id: '', //用户id,
				year: '', //当前年份
				month: '', //当前月份
				// 以下为参团
				travel_price: '', //出行前给旅行社的费用
				cultural: '', //文创产品
				agriculture: '', //农林牧渔产品
				specialty: '', //特产
				other_price: '', //有点通讯下面的其它
				other_price_off: '', //用于渲染
				telecom: '', //邮电通讯
				otherName: "", //具体名目，
				// 以下为非参团
				// 交通花费
				aircraft: '', //飞机
				train: '', //火车
				automobile: '', //汽车
				taxi: '', //出租车
				car_rental: '', //汽车出租
				refueling: '', //加邮费
				parking: '', //停车费
				road_toll: '', //过路费
				other: '', //交通花费下的其它
				// 有住宿花费
				camp: '', //营地
				hotel: '', //酒店
				civil: '', //民宿
				other_dation: '', //其它花费
				banimal: '', //农林牧鱼产品
				other_shop: '', //购物花费的其它
				other_shopName: '', //购物花费的其它名目
				// 游览花费
				scenic: '', //景区门票
				amusement: '', //景区游乐花费
				theme: '', //主题乐园门票
				venue: '', //场馆门票
				other_venName: '', //景区游览花费其它名目
				other_ven: '', //游览花费其它
				// 休闲娱乐花费
				film: '', //电影
				vocal_concert: '', //演唱会
				music_festival: '', //音乐节
				other_section: '', //休闲娱乐花费其它
				cations: '', //邮电通讯总金额
				other_teleName: '', //邮电通讯总金额下面的其它名目
				other_tele: '', //邮电通讯总金额下面的其它
				tabbarListData: [{
						id: 1,
						name: '参团'
					},
					{
						id: 2,
						name: '非参团'
					}
				],
				// 日期
				starttime: {}, //时间开始
				endtime: {}, //时间结束
				starttimeTwo: {},
				endtimeTwo: {},
				proportionText: '', //参团现金支付比例
				paybyText: '', //刷卡支付比例
				move: '', //参团逸动支付比
				cash: '', //非参团现金支付比例
				card_payment: '', //非参团刷卡支付比例
				payment: '', //逸动支付比例
				gouwuqita: '', //购物花费里的其它名目
				qitamingmu: "", //其他花费里的其他名目
				jiaotongqitamingmu: "", //交通其他名目数据
				youzhusuqitamingmu: "", //有住宿花费其他名目
				xiuxianother_venName: "",
				wuzhusuqitaData: '', //无住宿花费人民币元输入数据
				wuzhusuqitamingmu: '', //无住宿花费下的其它名目
				gouwuhuafeiqitamingmu: "", //购物花费其他名目
				youlanqitamianfeiData: '', //游览免费里的其他花费
				youlanmianfeimingmu: "", //游览不免费里的其他名目

				jiudiantian: "",
				minsutian: "",
				yingditian: "",
				qitatian: "",
				listData: null, //传递过来的缓存记账撒胡祖
				parmasData: '', //传递的数据
				parmasUrl: '', //传递的url
				titleType: null, //实时记账标题还是一次性记账标题
				ID:""//重新提交传递的ID


			}
		},
		onLoad(options) {
			console.log('获取传过来的options是多少', options)

			let params = JSON.parse(options.item)
			console.log('获取首页记账列表传递过来的数据', params)

			// 这块暂时没有修改   待测试后修改
			if (params.type) { //说明是正常去记账跳转过来的    赋值对应页面标题
			
			    if(params.type==="联络人"){
					console.log('走联络人身份给记账', params)
					this.id=params.id//赋值对应列表id
				}else{
					console.log('走非联络人身份记账', params)
					
					this.titleType = options.type //记账标题赋值
					uni.setNavigationBarTitle({ //动态更改导航栏标题方法名称  动态赋值导航栏标题名称
						title: options.type
					})
					
					let userInfo = uni.getStorageSync("userInfo")
					if (userInfo) {
						if (userInfo.user_type === "法人") { //法人2
							this.user_type = 2
						} else if (userInfo.user_type === "联络人") { //联络人3
							this.user_type = 3
						} else { //自然人1
							this.user_type = 1
						}
						this.id = userInfo[0].id,
						this.business_specific_type = userInfo[0].business_specific_type
					}
				}
				
			} else { //否则就是重新提交跳转过来的  // 以下代码为一次性记账逻辑//如果没有上个页面穿过来的走以下逻辑    //否则使用上个页面传递过来的值

				console.log('走未通过记账逻辑', this.tabbarIndex)
				this.user_type = params.user_type
				this.id = params.id
				this.object.adopt_id = params.adopt_id   //1  待审核   2  未通过  3.已通过
				this.object.fail = params.fail?params.fail:"记账内容需重新提交，有问题请联系联络人。" //失败原因
				this.tabbarIndex = params.type_id
				this.object.type_id = params.type_id
				// if(this.tabbarIndex==1){
				// 	this.isRight1=true
				// 	this.isRight2=false
				// }else{
				// 	this.isRight2=true
				// 	this.isRight1=false
				// }

			}



			// 以下代码为实时记账逻辑
			if (params.listData) {
				this.listData = params.listData
				console.log('获取实时记账条数获取实时记账条数获取实时记账条数获取实时记账条数获取实时记账条数获取实时记账条数获取实时记账条数', this.listData.length)
				this.jizhang_score = this.listData.length
				this.tabbarIndex = this.listData[0].tabbarIndex //赋值参团与非参团导航下标
				// 开启自动动画
				// if(this.tabbarIndex==1){
				// 	this.isRight1=true
				// 	this.isRight2=false
				// }else{
				// 	this.isRight2=true
				// 	this.isRight1=false
				// }
				// 判断实时记账的是参团还是非参团  赋值参团非参团数据
				if (this.listData[0].tabbarIndex == 1) { //说明记账的是参团  赋值参团数据
					this.listData.forEach(item => {
						if (item.useName === '特产') {
							this.form.specialty = item.operating
						}
						if (item.useName === '文创产品') {
							this.form.cultural = item.operating
						}
						if (item.useName === '农林牧渔产品') {
							this.form.agriculture = item.operating
						}
						if (item.useName === '其他购物') {
							this.form.other = item.operating
						}
					})
				} else {
					this.listData.forEach(item => {
						if (item.useName === '飞机') {
							this.form1.aircraft = item.operating
						} else if (item.useName === '火车') {
							this.form1.train = item.operating
						} else if (item.useName === '汽车') {
							this.form1.automobile = item.operating
						} else if (item.useName === '出租车') {
							this.form1.taxi = item.operating
						} else if (item.useName === '汽车出租') {
							this.form1.car_rental = item.operating
						} else if (item.useName === '加油费') {
							this.form1.refueling = item.operating
						} else if (item.useName === '停车费') {
							this.form1.parking = item.operating
						} else if (item.useName === '过路费') {
							this.form1.road_toll = item.operating
						} else if (item.useName === '其他交通') {
							this.form1.other = item.operating
						} else if (item.useName === '酒店') {
							this.form1.hotel = item.operating
						} else if (item.useName === '民宿') {
							this.form1.civil = item.operating
						} else if (item.useName === '营地') {
							this.form1.camp = item.operating
						} else if (item.useName === '其他住宿') {
							this.form1.other_dation = item.operating
						} else if (item.useName === '文创产品') {
							this.form1.cultural = item.operating
						} else if (item.useName === '农林牧渔产品') {
							this.form1.banimal = item.operating
						} else if (item.useName === '特产') {
							this.form1.specialty = item.operating
						} else if (item.useName === '其他购物') {
							this.form1.other_shop = item.operating
						} else if (item.useName === '景区门票') {
							this.form1.scenic = item.operating
						} else if (item.useName === '景区游乐') {
							this.form1.amusement = item.operating
						} else if (item.useName === '主题乐园') {
							this.form1.theme = item.operating
						} else if (item.useName === '场馆门票') {
							this.form1.venue = item.operating
						} else if (item.useName === '其他游览') {
							this.form1.other_ven = item.operating
						} else if (item.useName === '电影') {
							this.form1.film = item.operating
						} else if (item.useName === '演唱会') {
							this.form1.vocal_concert = item.operating
						} else if (item.useName === '音乐会') {
							this.form1.music_festival = item.operating
						} else if (item.useName === '其他休闲') {
							this.form1.other_section = item.operating
						}


					})
				}
				// this.form.cultural=this.listData[0].operating
			}

			var myDate = new Date(); //获取系统当前时间
			this.year = myDate.getFullYear()
			// 处理月份小于12月份前面追加0位 否则大于12 直接赋值
			let month = myDate.getMonth() + 1
			if (month < 10) {
				this.month = '0' + month
			} else {
				this.month = month
			}

			console.log('获取导航栏数字0', this.tabbarIndex)
			if (this.tabbarIndex == 2) {
				this.isRight1 = false
				this.isRight2 = true
			} else {
				this.isRight1 = true
				this.isRight2 = false
			}
			if (this.object.adopt_id == 2) {//1  待审核  2  未通过   3  已通过
				// 未通过列表传递过来的之前填写的所有数据的  测试数据 待后续删除
				this.getBillDetails(params)
			}
			console.log('this.object',this.object)





		},
		methods: {

			// 详情测试数据  待后续删除

			// 获取详情数据
			getBillDetails(options) {
				console.log('是否调用detail接口了',options)
				var _self = this;
				this.$.tipLoading('加载中')
				if (options) {
					var id = options.id
					_self.ID=options.id
					var user_type = options.user_type == 1 ? '自然人' : '法人'
					var month = options.month
					//自然人    //法人
					var keyword = options.col == 1 ? 'totel' : 'turnover'
					var type_id = options.type_id
					console.log('传递的详情参数', id, user_type, month, keyword)
					uni.request({
						method: 'POST',
						url: 'https://jizhang.xqyu.cn/index.php/api/index/get_bill_details',
						dataType: 'json',
						header: {
							'content-type': 'application/x-www-form-urlencoded'
						},
						data: {
							id: id,
							user_type: user_type,
							keyword: keyword,
							month: month,
							type_id: type_id
						},
						success: function(res) {
							console.log('获取渲染赋值的数据', res.data.data)
							if (res.data.code == 1) {
								let result = res.data.data
								if (result.type_id == 1) { //请求的是参团  赋值参团
									console.log('走参团渲染数据', result)
									_self.pickerData = result.star_time + " 至 " + result.end_time //时间赋值
									_self.star_time = result.star_time //开始时间赋值
								    _self.end_time = result.end_time //结束时间赋值
									_self.travel_price = result.travel_price //出行前给旅行社的费用
									_self.cultural = result.cultural //购物花费文创产品赋值
									_self.form.cultural = result.cultural //购物花费文创产品赋值
									_self.agriculture = result.agriculture //购物花费农林牧鱼产品
									_self.form.agriculture = result.agriculture //购物花费农林牧鱼产品
									_self.specialty = result.specialty //购物花费特产
									_self.form.specialty = result.specialty //购物花费特产
									_self.form.other = (result.other).split('-')[0] //购物花费里的其他元赋值
									_self.gouwuqita = (result.other).split('-')[1] //购物花费里的其他元赋值
									_self.telecom = result.telecom //邮电通讯赋值
									_self.form.other_price = (result.other_price).split('-')[0] //邮电通讯下面的其他元
									_self.other_price_off = (result.other_price).split('-')[0] //邮电通讯下面的其他元
									_self.qitamingmu = (result.other_price).split('-')[1] //邮电通讯下面的其他名目
									_self.otherName = (result.other_price).split('-')[1] //邮电通讯下面的其他名目
									_self.proportionText = result.proportion //现金比例
									_self.paybyText = result.payby //刷卡比例
									_self.move = result.move //移动支付比例 
									_self.form.above = result.above //上述花费所包含人数

								} else { //请求的是费参团  赋值非参团
									console.log('走非参团赋值', result)
									console.log('交通其他花费赋值', (result.other).split('-')[1])
									_self.pickerData = result.star_time + " 至 " + result.end_time //时间赋值
									_self.star_time = result.star_time //开始时间赋值  
									_self.end_time = result.end_time //结束时间赋值
									// 所有其他类赋值所有其他类赋值所有其他类赋值所有其他类赋值所有其他类赋值所有其他类赋值所有其他类赋值所有其他类赋值所有其他类赋值
									_self.jiaotongqitamingmu = (result.other).split('-')[1] //交通其它花费名目赋值
									_self.form1.other = (result.other).split('-')[0] //交通其它花费赋值
									_self.youzhusuqitamingmu = (result.other_dation).split('-')[
										1] //有住宿花费其他名目赋值
									_self.qitatian = (result.other_dation).split('-')[2] //有住宿花费其他天数赋值
									_self.form1.other_dation = (result.other_dation).split('-')[0] //有住宿花费元赋值
									_self.form1.other_nome = (result.other_nome).split('-')[0] //无住宿花费其他元赋值
									_self.wuzhusuqitamingmu = (result.other_nome).split('-')[
										1] //无住宿花费其他名目赋值      
									_self.wuzhusuqitaData = (result.other_nome).split('-')[
										1] //无住宿花费其他名目赋值  用于校验
									_self.form1.other_shop = (result.other_shop).split('-')[0] //购物花费其他元赋值
									_self.gouwuhuafeiqitamingmu = (result.other_shop).split('-')[
										1] //购物花费其他名目赋值
									_self.form1.other_ven = (result.other_ven).split('-')[0] //游览花费不免费其他元赋值
									_self.youlanmianfeimingmu = (result.other_ven).split('-')[
										1] //游览花费不免费其他名目赋值

									_self.form1.other_free = result.other_free //游览花费免费其他名目赋值
									_self.form1.other_section = (result.other_section).split('-')[
										0] //休闲娱乐花费的其他元赋值
									_self.xiuxianother_venName = (result.other_section).split('-')[
										1] //休闲娱乐花费的其他名目赋值
									_self.other_tele = (result.other_tele).split('-')[0] //非参团餐饮花费下面的其他花费元
									_self.other_teleName = (result.other_tele).split('-')[1] //非参团餐饮花费下面的其他花费名目
									console.log('赋值', _self.other_tele, _self.other_teleName)
									// 所有正常类赋值 所有正常类赋值 所有正常类赋值 所有正常类赋值 所有正常类赋值 所有正常类赋值 所有正常类赋值 所有正常类赋值
									_self.form1.aircraft = result.aircraft //飞机赋值
									_self.form1.train = result.train //火车赋值
									_self.form1.automobile = result.automobile //汽车赋值
									_self.form1.taxi = result.taxi //出租车赋值
									_self.form1.car_rental = result.car_rental //汽车出租赋值
									_self.form1.refueling = result.refueling //加油费赋值
									_self.form1.parking = result.parking //停车费赋值
									_self.form1.road_toll = result.road_toll //过路费赋值

									_self.jiudiantian = (result.hotel).split('-')[0] //酒店天赋值
									_self.form1.hotel = (result.hotel).split('-')[1] //酒店赋值

									_self.minsutian = (result.civil).split('-')[0] //民宿天赋值
									_self.form1.civil = (result.civil).split('-')[1] //民宿天赋值
									_self.yingditian = (result.camp).split('-')[0] //营地天赋值
									_self.form1.camp = (result.camp).split('-')[1] //营地元赋值
									_self.form1.family = result.family //亲友家赋值
									_self.form1.leisure = result.leisure //自由休闲度假居所赋值
									_self.form1.cultural = result.cultural //文创产品赋值
									_self.form1.banimal = result.banimal //农林牧鱼产品赋值
									_self.form1.specialty = result.specialty //特产赋值
									_self.form1.scenic = result.scenic //景区门票赋值
									_self.form1.amusement = result.amusement //景区游乐花费赋值
									_self.form1.theme = result.theme //主题乐园门票赋值
									_self.form1.venue = result.venue //场馆门票赋值
									_self.form1.culturales = result.culturales //文化相关场馆赋值
									_self.form1.free_park = result.free_park //免费公园赋值
									_self.form1.film = result.film //电影赋值
									_self.form1.vocal_concert = result.vocal_concert //演唱会赋值
									_self.form1.music_festival = result.music_festival //音乐节赋值
									_self.form1.cations = result.cations //邮电通讯赋值
									_self.form1.total_above = result.total_above //上述花费总额赋值
									_self.form1.total_people = result.total_people //上述花费所包含人数赋值
									_self.form1.cash = result.cash //现金支付比例赋值
									_self.cash = result.cash //现金支付比例赋值                  用于校验
									_self.form1.card_payment = result.card_payment //刷卡支付比例赋
									_self.card_payment = result.card_payment //移动支付比例赋                 用于校验
									_self.form1.payment = result.payment //移动支付比例赋值
									_self.payment = result.payment //移动支付比例赋                         用于校验
									_self.form1.accomm = result.accomm //住宿花费赋值
								}
								_self.$.hideLoading()
							}else{
								_self.$.hideLoading()
								_self.$.toast(res.data.msg)
							}
						},
					})
				}
			},












			// 读取文件 多张图片上传
			afterReadImgs(event) {
				console.log('eent', event)
				var index = event.length - 1
				var str = event[index].url.substring(event[index].url.length - 10, event[index].url.length)
				console.log('event里的', str)
				var that = this
				console.log('下表', index)
				let num = 5;
				this.$.tipLoading('上传中')
				uni.uploadFile({
					url: 'https://jizhang.xqyu.cn/index.php/api/index/upload',
					filePath: event[index].url, //每次上传最后一张图片
					name: 'file',
					// 文件对应的key ，默认 为 file
					formData: {
						uid: that.uid,
						user_type: that.user_type,
						file: event[0].url,
						file_type: 5
					},
					//上传额外携带的参数
					success(res) {
						setTimeout(function() {
							that.$.hideLoading()
							that.$.toast('已上传')
						}, 800)
						console.log('是否上传成功', JSON.parse(res.data).data.fullurl)
						that.multipleImgs.push(JSON.parse(res.data).data.fullurl)
						var newUrl = JSON.parse(res.data).data.fullurl
						var arr = []
						that.multipleImgs.forEach(item => { //对比过滤
							console.log('外面面的循环', item)
							// var  newStr=item.substring(item.length-10,item.length)
							event.forEach(v => {
								console.log('里面的循环', v.url)
								// let newStr1=v.url.substring(v.length-10,v.length)
								if (item.substring(item.length - 10, item.length) == v.url
									.substring(v.url.length - 10, v.url.length)) {
									console.log('等于', item.substring(item.length - 10, item
										.length), v.url.substring(v.url.length - 10, v.url
											.length))
									arr.push(item)
								} else {
									console.log('不等于', item.substring(item.length - 10, item
										.length), v.url.substring(v.length - 10, v.length))
								}
							})
						})
						// 过滤删除后的数组  禁止multipleImgs数组中含有相同元素url  得到最终不重复的元素进行传递
						var array_unique = arr.filter(function(element, index, array) {
							return array.indexOf(element) === index;
						});
						that.multipleImgsListData = arr //赋值最终需要传递的url数组
						console.log('push进去的push进去的push进去的', that.multipleImgs, arr, array_unique)
					}
				})
				if (event.length == num) {
					this.$.toast('最多上传5张图片')
					return
				}
			},
			// 小票上传弹窗确定按钮提交事件
			uploadSubmit: function() {
				var that = this
				console.log('小票提交了', this.multipleImgs)
				if (this.multipleImgs == 0) { //小票上传非空校验
					this.$.toast('请先上传小票')
					return
				}
				var url = this.multipleImgsListData.join(',')
				this.parmasData.photo_url = url
				this.formRequest(that.parmasData, that.parmasUrl)
			},

			// 打开日期选择器
			pickerChange: function() {
				this.showPicker = true
			},
			// 日期选择器取消
			pickerCancle: function(e) { //选择
				this.showPicker = false
			},
			params: function(rangetime) {
				this.showPicker = false
				this.rangetime = rangetime
				this.star_time = this.rangetime[0]
				this.end_time = this.rangetime[1]
			},
			// 日期确定
			pickerConfirm: function(e) {
				if (e) { //日期格式化
					let time = e.value
					console.log('获取time', time)
					this.rangetime = time
					let arr1 = this.rangetime[0].replace('00:00', '')
					let arr2 = this.rangetime[1].replace('00:00', '')
					let arr3 = arr1 + ' ' + '至' + ' ' + arr2
					let newTime = []
					newTime[0] = arr1
					newTime[1] = arr2
					console.log('arr1arr2', arr1, arr2)
					console.log('newTime', newTime)
					// let rangetime = arr3.split('至')
					let newTime1 = utils.getBeforeDate(0) //当前时间
					console.log('获取日期', newTime, utils.getBeforeDate(0))
					let start1 = newTime[0].split('/')
					let end = newTime[1].split('/')
					let time1 = utils.getBeforeDate(0).split('-')
					console.log('分割后的时间分割后的时间分割后的时间分割后的时间', start1, end, time1)
					
					if (Number(start1[0]) > Number(time1[0]) || Number(end[0]) > Number(time1[0])) {
						console.log('当前选择的开始年份和结束年份大于当前年份')
						this.$.toast('开始年份或结束年份不能大于当前年份1')
						return
					} else if (Number(start1[0]) < Number(time1[0]) || Number(end[0]) < Number(end[0])) {
						console.log('当前选择的开始年份和结束年份小于当前年份可以直接走了')
						this.showPicker = false
						this.star_time = start1.join('-')
						this.end_time = end.join('-')
						this.pickerData = start1.join('-') + " 至 " + end.join('-')
					} else if (Number(start1[0]) == Number(time1[0]) || Number(end[0]) == Number(end[0])) {
						console.log('当前选择的开始年份和结束年份等于当前年份',start1[1],end[1],  time1[1])
						if(Number(start1[1])<Number(time1[1]) || Number(end[1])<Number(time1[1])){
							console.log('小于可以走了')
							console.log('月份可以走了月份可以走了月份可以走了月份可以走了',time1[2],end[2])
							if(end[1]==time1[1]){
								console.log('end2和time2', end[2], time1[2])
								if(Number(end[2]) >Number(time1[2]) ){
									this.$.toast('开始日期或结束日期不能大于当前日期这里')
									return
								}else{
									this.showPicker = false
									this.star_time = start1.join('-')
									this.end_time = end.join('-')
									this.pickerData = start1.join('-') + " 至 " + end.join('-')
								}
							}else{
								this.showPicker = false
								this.star_time = start1.join('-')
								this.end_time = end.join('-')
								this.pickerData = start1.join('-') + " 至 " + end.join('-')
							}
						
						}else if (Number(start1[1]) > Number(time1[1]) || Number(end[1]) > Number(time1[1])) {
							this.$.toast('开始月份或结束月份不能大于当前月份2')
							return
						} else if (Number(start1[1]) == Number(time1[1]) || Number(end[1]) == Number(end[1])) {
							if (Number(start1[2]) > Number(time1[2]) || Number(end[2]) > Number(time1[2])) {
								this.$.toast('开始日期或结束日期不能大于当前日期3')
								return
							} else {
								console.log('日期可以走了日期可以走了日期可以走了日期可以走了日期可以走了', start1.join('-') + " 至 " + end.join('-'))
								this.showPicker = false
								this.star_time = start1.join('-')
								this.end_time = end.join('-')
								this.pickerData = start1.join('-') + " 至 " + end.join('-')
							}

						} else {
							console.log('月份可以走了月份可以走了月份可以走了月份可以走了')
							this.showPicker = false
							this.star_time = start1.join('-')
							this.end_time = end.join('-')
							this.pickerData = start1.join('-') + " 至 " + end.join('-')
						}
					} else {
						console.log('年份可以走了年份可以走了年份可以走了年份可以走了年份可以走了')
						this.showPicker = false
						this.star_time = start1.join('-')
						this.end_time = end.join('-')
						this.pickerData = start1.join('-') + " 至 " + end.join('-')
					}
				}
			},
			// 非参团餐饮花费输入事件
			catering_expensesChange:function(e){
				console.log('餐饮花费输入事件',e.detail.value)
				this.form1.catering_expenses=e.detail.value
			},
			gouwuqi: function(e) {
				this.gouwuqita = e.detail.value
			},
			//天数统计
			jiudiantianChange: function(e) {
				this.jiudiantian = e.detail.value
			},
			yingditianChange: function(e) {
				this.yingditian = e.detail.value
			},
			minsutianChange: function(e) {
				this.minsutian = e.detail.value
			},
			qitatianChange: function(e) {
				this.qitatian = e.detail.value
			},
			// 交通下的其他名目输入事件
			jiaotongqitaChange: function(e) {
				//this.gouwuqita=e.detail.value
			},
			// 交通其他名目输入事件
			jiaotongqitamingmuChange: function(e) {
				this.jiaotongqitamingmu = e.detail.value
			},
			// 有住宿花费下的其他名目输入事件
			youzhusuqitaChange: function(e) {
				this.youzhusuqitamingmu = e.detail.value
			},
			// 无住宿花费下的其他名目输入事件
			wuzhusuqitaChange: function(e) {
				this.wuzhusuqitamingmu = e.detail.value
			},
			// 购物花费下的其他名目输入事件
			gouwuhuafeiqitaChange: function(e) {
				this.gouwuhuafeiqitamingmu = e.detail.value
			},
			// 游览花费免费下的其他名目输入事件

			// 休闲花费下的其他名目输入事件
			xiuxianqitaChange: function(e) {
				this.xiuxianother_venName = e.detail.value
			},
			// 游览花费其他免费
			youlanqitamianfeiInput: function(e) {
				this.youlanqitamianfeiData = e.detail.value
			},
			// 现金支付比例失去焦点事件
			proportionBlur: function(e) {
				this.proportionText = e.detail.value
				if (Number(e.detail.value > 100)) {
					this.$.toast('只能输入100以内的整数')
				}
			},
			// 刷卡支付比例失去焦点事件
			paybyBlur: function(e) {
				this.paybyText = e.detail.value
				if (Number(e.detail.value > 100)) {
					this.$.toast('只能输入100以内的整数')
				}
			},
			paymentBlur2: function(e) {
				this.move = e.detail.value
				if (Number(e.detail.value > 100)) {
					this.$.toast('只能输入100以内的整数')
				}
			},
			// 非参团现金支付比例失去焦点事件
			cashBlur: function(e) {
				this.cash = e.detail.value
				if (Number(e.detail.value > 100)) {
					this.$.toast('只能输入100以内的整数')
				}
			},
			//非参团刷卡支付比例失去焦点事件
			card_paymentBlur: function(e) {
				this.card_payment = e.detail.value
				if (Number(e.detail.value > 100)) {
					this.$.toast('只能输入100以内的整数')
				}
			},
			//非参团逸动支付比例失去焦点事件
			paymentBlur: function(e) {
				this.payment = e.detail.value
				if (Number(e.detail.value > 100)) {
					this.$.toast('只能输入100以内的整数')
				}
			},
			// 无住宿花费里的其它名目输入事件
			wuzhusuqitaInput: function(e) {
				this.wuzhusuqitaData = e.detail.value
				console.log('无住宿花费名目 ', this.wuzhusuqitaData)
			},
			travel_priceChange: function(e) {
				this.travel_price = e.detail.value
			},
			culturalChange: function(e) { //文创产品输入事件
				if (this.form.cultural) { //判断通过options传递过来的实时记账数据相关字段是否有值,有值.修改的时候.直接复制传递的options字段  否则赋值默认字段
					this.form.cultural = e.detail.value
				} else {
					this.cultural = e.detail.value
				}
			},
			feiculturalChange: function(e) { //非参团文创产品输入事件
				if (this.form1.cultural) { //判断通过options传递过来的实时记账数据相关字段是否有值,有值.修改的时候.直接复制传递的options字段  否则赋值默认字段
					this.form1.cultural = e.detail.value
				} else {
					this.cultural = e.detail.value
				}
			},
			agricultureChange: function(e) { //农林沐鱼产品输入事件
				if (this.form.agriculture) {

					console.log('走的输入1', this.form.agriculture)
					this.form.agriculture = e.detail.value

				} else {
					this.agriculture = e.detail.value
					console.log('走的输入2', this.form.agriculture, this.agriculture)
				}
			},
			feiagricultureChange: function(e) { //非参团农林沐浴产品输入事件
				if (this.form1.banimal) {
					this.form1.banimal = e.detail.value
				} else {
					this.banimal = e.detail.value
				}
			},
			specialtyChange: function(e) { //特产输入事件
				if (this.form.specialty) {
					this.form.specialty = e.detail.value
				} else {
					this.specialty = e.detail.value
				}
			},
			feispecialtyChange: function(e) { //非参团特产输入事件
				if (this.form1.specialty) {
					this.form1.specialty = e.detail.value
				} else {
					this.specialty = e.detail.value
				}
			},
			cantuanotherChange: function(e) { //参团购物花费里的额其他花费输入事件
				if (this.form.other) {
					this.form.other = e.detail.value
				} else {
					this.other = e.detail.value
				}
			},
			otherChange: function(e) {


			},
			telecomChange: function(e) {
				this.telecom = e.detail.value
			},
			otherNameChange: function(e) {
				this.qitamingmu = e.detail.value
				this.otherName = e.detail.value
			},
			other_priceChange: function(e) {
				this.other_price_off = e.detail.value //用于渲染
				this.other_price = e.detail.value + '-' + this
					.otherName //用于传值     第一个都是固定绑定的其他输入框的值   后面都是主输入框的值   中间的是天数等输入框的值
			},
			aircraftChange: function(e) { //非参团飞机输入事件
				if (this.form1.aircraft) {
					this.form1.aircraft = e.detail.value
				} else {
					this.aircraft = e.detail.value
				}

			}, //飞机
			trainChange: function(e) {
				if (this.form1.train) {
					this.form1.train = e.detail.value
				} else {
					this.train = e.detail.value
				}
			}, ///非参团火车输入事
			automobileChange: function(e) {
				if (this.form1.automobile) {
					this.form1.automobile = e.detail.value
				} else {
					this.automobile = e.detail.value
				}
			}, //非参团汽车输入事件
			taxiChange: function(e) {
				if (this.form1.taxi) {
					this.form1.taxi = e.detail.value
				} else {
					this.taxi = e.detail.value
				}
			}, //费参团出租车输入事件
			car_rentalChange: function(e) {
				if (this.form1.car_rental) {
					this.form1.car_rental = e.detail.value
				} else {
					this.car_rental = e.detail.value
				}
			}, //费参团汽车出租输入事件
			refuelingChange: function(e) {
				if (this.form1.refueling) {
					this.form1.refueling = e.detail.value
				} else {
					this.refueling = e.detail.value
				}

			}, //非参团加油费输入事件
			parkingChange: function(e) {
				if (this.form1.parking) {
					this.form1.parking = e.detail.value
				} else {
					this.parking = e.detail.value
				}
			}, //非参团停车费输入事件
			road_tollChange: function(e) {
				if (this.form1.road_toll) {
					this.form1.road_toll = e.detail.value
				} else {
					this.road_toll = e.detail.value
				}
			}, //非参团过路费输入事件
			otherChange: function(e) {
				if (this.form1.other) {
					this.form1.other = e.detail.value
				} else {
					this.other = e.detail.value
				}
			}, //交通下辖的其它花费输入事件
			hotelChange: function(e) {
				if (this.form1.hotel) {
					this.form1.hotel = e.detail.value
				} else {
					this.hotel = e.detail.value
				}
			}, //非参团酒店输入事件
			civilChange: function(e) {
				if (this.form1.civil) {
					this.form1.civil = e.detail.value
				} else {
					this.civil = e.detail.value
				}
			}, //非参团民宿输入事件
			campChange: function(e) {
				if (this.form1.camp) {
					this.form1.camp = e.detail.value
				} else {
					this.camp = e.detail.value
				}
			}, //非参团营地输入事件
			other_dationChange: function(e) {
				if (this.form1.other_dation) {
					this.form1.other_dation = e.detail.value
				} else {
					this.other_dation = e.detail.value
				}
			}, //非参团有住宿花费不免费里的其它花费输入事件
			banimalChange: function(e) {
				if (this.form1.banimal) {
					this.form1.banimal = e.detail.value
				} else {
					this.banimal = e.detail.value
				}
			}, //农林牧鱼产品输入事件
			// other_shopNameChange:function(e){this.other_shop=e.detail.value},//购物花费其它了的名目
			other_shopChange: function(e) { //费参团购物花费里的其他花费输入事件
				if (this.form1.other_shop) {
					this.form1.other_shop = e.detail.value
				} else {
					this.other_shop = e.detail.value
				}
			}, //购物其它
			scenicChange: function(e) {
				if (this.form1.scenic) {
					this.form1.scenic = e.detail.value
				} else {
					this.scenic = e.detail.value
				}
			}, //非参团景区门票输入事件
			amusementChange: function(e) {
				if (this.form1.amusement) {
					this.form1.amusement = e.detail.value
				} else {
					this.amusement = e.detail.value
				}
			}, //费参团景区游乐花费输入事件
			themeChange: function(e) {
				if (this.form1.theme) {
					this.form1.theme = e.detail.value
				} else {
					this.theme = e.detail.value
				}
			}, //非参团主题乐园门票输入事件
			venueChange: function(e) {
				if (this.form1.venue) {
					this.form1.venue = e.detail.value
				} else {
					this.venue = e.detail.value
				}
			},
			//非参团游览花费不免费里的其它输入事件
			other_venNameChange: function(e) {
				this.youlanmianfeimingmu = e.detail.value
			}, //景区游览花费其它名目
			other_venChange: function(e) {
				if (this.form1.other_ven) {
					this.form1.other_ven = e.detail.value
				} else {
					this.other_ven = e.detail.value
				}
			}, //非参团景区游览花费其它花费
			other_sectionChange: function(e) {
				if (this.form1.other_section) {
					this.form1.other_section = e.detail.value
				} else {
					this.other_section = e.detail.value
				}
			}, //费参团休闲娱乐花费其它花费输入事件
			filmChange: function(e) {
				if (this.form1.film) {
					this.form1.film = e.detail.value
				} else {
					this.film = e.detail.value
				}
			}, //非参团电影输入事件
			vocal_concertChange: function(e) {
				if (this.form1.vocal_concert) {
					this.form1.vocal_concert = e.detail.value
				} else {
					this.vocal_concert = e.detail.value
				}
			}, //费参团演唱会输入事件
			music_festivalChange: function(e) {
				if (this.form1.music_festival) {
					this.form1.music_festival = e.detail.value
				} else {
					this.music_festival = e.detail.value
				}
			}, //非参团音乐会输入事件
			cationsChange: function(e) {
				this.cations = e.detail.value
			}, //邮电通讯总金额
			other_teleNameChange: function(e) {
				this.other_teleName = e.detail.value
			}, //有i但通讯下面的其它名目
			other_teleChange: function(e) {
				this.other_tele = e.detail.value
			}, //邮电通讯下面的其它

			//导航栏切换
			tabbarChange: function(e) {
				console.log('导航栏切换是否优质', this.listData)
				// 时间初始化

				if (this.object.adopt_id == 2) { //说明是未通过跳转过来的记账   
					console.log('走的是未通过跳转过来的记账', this.listData, this.object.adopt_id, this.object.type_id)
					// 再次判断传递过来的未通过的记账列表记账的是参团还是费参团  1  参团  2  非参团
					if (this.object.type_id == 1) { //未通过记账的是参团
						if (e == 2) {
							uni.showModal({
								title: '温馨提示',
								content: '您有待重新提交的记账数据,请先提交',
								success: function(res) {
									if (res.confirm) {
										console.log('点击参团重新提交确定按钮了')

									} else if (res.cancel) {}
								}
							});
						} else {
							return
						}


					} else { //未通过记账的是费参团
						console.log('未通过的非参团', e)
						if (e == 1) {
							uni.showModal({
								title: '温馨提示',
								content: '您有待重新提交的记账数据,请先提交',
								success: function(res) {
							  if (res.confirm) {
							 		console.log('点击非参团重新提交确定按钮了')
									} else if (res.cancel) {}
								}
							});
						} else {
							return
						}
					}


				} else {
					console.log('走的是通过的跳转过来的记账', this.listData, this.object.adopt_id)


					if (this.listData == null) {
						console.log('走的是通过的跳转过来的记账没没没没没没有数据的', this.isRight1, this.isRight2, e)
						this.isRight1 = !this.isRight1
						this.isRight2 = !this.isRight2
						this.tabbarIndex = e
						// 没有匹配未通过的条件下切换参团费参团导航栏时再清空时间
						this.rangetime = [] //清空筛选时间
						this.pickerData = "请选择时间范围"
					} else {
						console.log('走的是通过的跳转过来的记账有有有有有有数据的', this.isRight1, this.isRight2, e)
						if (this.listData[0].tabbarIndex == 2) { //说明当前记账的是非参团.如果点击参团的话,提示未提交
							console.log('this.listData[0].tabbarIndex==2')
							if (e == 1) {
								console.log('点击this.listData[0].tabbarIndex==2第一个')
								uni.showModal({
									title: '温馨提示',
									content: '您有未提交的记账数据,请先提交',
									success: function(res) {
										if (res.confirm) {

										} else if (res.cancel) {}
								 }
								});
							} else {
								console.log('点击this.listData[0].tabbarIndex==2第二个')
								return
							}
						} else {
							if (e == 2) {
								console.log('点击this.listData[0].tabbarIndex==1第一个')
								uni.showModal({
									title: '温馨提示',
									content: '您有未提交的记账数据,请先提交',
									success: function(res) {
										if (res.confirm) {

										} else if (res.cancel) {}
									}
								});
							} else {
								console.log('点击this.listData[0].tabbarIndex==1第二个')
								return
							}
						}
					}

				}
			},
			// 校验本月记账是否已经超过3次函数
			validateRequest: function(data, url) {
				console.log('传递过来的参数是', data, url)
				
				var that = this
				console.log('uid leixing ', this.id, this.user_type)
				var type = ''
				if (this.user_type == 1) {
					type = '自然人'
				} else {
					type = '法人'
				}
				uni.request({
					method: 'POST',
					url: 'https://jizhang.xqyu.cn/index.php/api/index/get_is_bill',
					dataType: 'json',
					header: {
						'content-type': 'application/x-www-form-urlencoded'
					},
					data: {
						uid: that.id,
						user_type: type
					},
					success: function(res) {
						if (res.data.code == 1) { //1  未记账   2  已记账
							console.log('本月是否有记账', res.data.code)
							that.formRequest(data, url) //本月未记账  直接提交
						} else {
							if (that.object.adopt_id == 2) {
								that.formRequest(data, url) // 直接提交   不需要校验是否记账逻辑
								return
							} else {
								that.isGetBill = true //本月已记账超过3次  打开传小票弹窗
							}
						}
					}
				});
			},
			get_unix_time_stamp: function(strtime = false) {
				if (strtime) {
					var date = new Date(strtime);
				} else {
					var date = new Date();
				}
				// time1 = date.getTime();   //会精确到毫秒---长度为13位
			 //time2 = date.valueOf(); //会精确到毫秒---长度为13位
				var time3 = Date.parse(date); //只能精确到秒，毫秒将用0来代替---长度为10位
				return time3;
			},
			// 表单提交
			formSubmit: function(e) {
				console.log('获取标题', this.titleType)
				var jizhang_score = 0
				if (this.titleType === '实时记账') {
					jizhang_score = this.listData.length
					console.log('打印冷后台', jizhang_score)
				} else {
					let hour5 = 60 * 60 * 5; //5小时
					let hour12 = 60 * 60 * 12; //5-12小时
					let hour24 = 60 * 60 * 24; //12-24小时
					let hour48 = 60 * 60 * 48; //24-48小时   48小时以上
					// 获取当前开始答题时间
					var timestamp = Date.parse(new Date()) / 1000
					let newEndTime = this.end_time.split('/').join('-')
					let endTime = newEndTime + ' ' + '00:00:00'
					console.log('获取当前时间', utils.timestampToTime(timestamp))
					console.log('获取选择的结束时间', endTime)
					let START = this.get_unix_time_stamp(timestamp)
					let END = this.get_unix_time_stamp(endTime) / 1000 //精确到秒
					let minTime = START - END
					console.log('结束时间', END)
					console.log('当前时间', START)
					console.log('最终时间差', minTime)
					if (minTime < hour5) { //5小时以内 累计5分
						console.log('5小时内,积分为5')
						jizhang_score = 5
					} else if (minTime < hour12) { //5-12小时以内 累计4分
						console.log('5-12小时内,积分为4')
						jizhang_score = 4
					} else if (minTime < hour24) { //12-48小时以内 累计3分
						console.log('12-24小时内,积分为3')
						jizhang_score = 3

					} else if (minTime < hour48) { //24-48小时以内 累计2分
						console.log('24-48小时内,积分为2')
						jizhang_score = 2

					} else { //48小时以上 累计1分
						jizhang_score = 1
						console.log('48小时以上,积分为1')
					}
					console.log('最终累计的界别在', jizhang_score)

				}

				if (this.tabbarIndex == 1) { //如果点击的是参团如果点击的是参团如果点击的是参团如果点击的是参团如果点击的是参团
					console.log('走的是参团校验', this.object)
					var that = this;

					e.detail.value.shop_total = Number(e.detail.value.cultural) + Number(e.detail.value.agriculture) +
						Number(e.detail.value.specialty) + Number(e.detail.value.other) //购物总花费
					e.detail.value.above_price = Number(e.detail.value.cultural) + Number(e.detail.value.agriculture) +
						Number(e.detail.value.specialty) + Number(e.detail.value.other) + Number(e.detail.value
							.telecom) + Number(this.other_price_off) + Number(this.travel_price) //上述花费总金额
					e.detail.value.year = this.year
					if (this.user_type = 1) { //如果是自然人.时间分开  如果是法人.拼接字符串  1 自然人  2  法人
						e.detail.value.star_time = this.star_time
						e.detail.value.end_time = this.end_time
					} else {
						e.detail.value.time = this.rangetime
					}
					e.detail.value.month = this.month
					e.detail.value.uid = this.id
					e.detail.value.type_id = this.tabbarIndex //1  参团  2  非参团 
					e.detail.value.flag = this.user_type
					let data = e.detail.value
					let {
						travel_price,
						cultural,
						agriculture,
						specialty,
						other,
						other_price,
						telecom,
						otherName,
						above,
						proportion,
						payby,
						move
					} = data //结构对象
					if (this.pickerData === "请选择时间范围") {
						this.$.toast('请选择时间范围')
						return
					}
					if (!travel_price) {
						this.$.toast('请输入出游前旅行社费用')
						return
					}
					if (!cultural) {
						this.$.toast('请输入文创产品花费')
						return
					}
					if (!agriculture) {
						this.$.toast('请输入农林牧鱼产品花费')
						return
					}
					if (!specialty) {
						this.$.toast('请输入特产花费')
						return
					}
					if (!other) {
						this.$.toast('请输入购物花费里的其它花费')
						return
					}
					if (Number(other) > 0 && this.gouwuqita.length == 0) {
						this.$.toast('请填写购物花费里的其它花费具体名目')
						return
					}
					if (!telecom) {
						this.$.toast('请输入邮电通讯花费')
						return
					}


					if (!other_price) {
						this.$.toast('请输入其它花费')
						return
					}
					if (this.qitamingmu == "" && Number(this.other_price_off) > 0) {
						this.$.toast('请填写其它花费里的具体名目')
						return
					}

					console.log('打印以下确定', this.qitamingmu, this.other_price_off)

					if (!above) {
						this.$.toast('请输入上述花费所包含人数111')
						return
					}
					if (!proportion) {
						this.$.toast('请输入现金支付比例')
						return
					}
					if (!payby) {
						this.$.toast('请输入刷卡支付比例')
						return
					}
					if (!move) {
						this.$.toast('请输入移动支付比例')
						return
					}
					if (Number(this.proportionText) > 100) {
						this.$.toast('现金支付比例只能输入100以内的整数,请重新输入')
						return
					}
					if (Number(this.paybyText) > 100) {
						this.$.toast('刷卡支付比列只能输入100以内的整数,请重新输入')
						return
					}
					if (Number(this.move) > 100) {
						this.$.toast('移动支付比例只能输入100以内的整数,请重新输入')
						return
					}
					if (Number(this.proportionText) + Number(this.paybyText) + Number(this.move) != 100) {
						this.$.toast('支付比列填写有误，总和不等于100%，请重新输入')
						return
					}
					e.detail.value.other = e.detail.value.other + '-' + this.gouwuqita
					e.detail.value.other_price = e.detail.value.other_price + '-' + this.qitamingmu
					e.detail.value.jizhang_score = jizhang_score //积分累计赋值
					// 审批状态值赋值
					e.detail.value.adopt_id=1  //1  待审批   2  未通过  3  已通过
					e.detail.value.id=this.ID?this.ID:"" //重新提交传递的ID
					let url = 'https://jizhang.xqyu.cn/index.php/api/natural/get_gation'
					this.parmasData = e.detail.value
					this.parmasUrl = url
					this.validateRequest(e.detail.value, url)
					// return
					// this.formRequest(e.detail.value, url)
				} else { //如果点击的是非参团如果点击的是非参团如果点击的是非参团如果点击的是非参团如果点击的是非参团如果点击的是非参团如果点击的是非参团
					console.log('走的是非参团校验', this.object)
					e.detail.value.trans = Number(e.detail.value.aircraft) + Number(e.detail.value.train) + Number(e
						.detail.value.automobile) + Number(e.detail.value.taxi) + Number(e.detail.value
						.car_rental) + Number(e.detail.value.refueling) + Number(e.detail.value.parking) + Number(e
						.detail.value.road_toll) + Number(e.detail.value.other) //交通花费总额
					e.detail.value.accomm = Number(e.detail.value.hotel) + Number(e.detail.value.civil) + Number(e
						.detail.value.camp) + Number(e.detail.value.other_dation) //住宿花费总额
					e.detail.value.shop_expen = Number(e.detail.value.cultural) + Number(e.detail.value.banimal) +
						Number(e.detail.value.specialty) + Number(e.detail.value.other_shop) //购物花费总额
					e.detail.value.cost = Number(e.detail.value.scenic) + Number(e.detail.value.amusement) + Number(e
						.detail.value.theme) + Number(e.detail.value.venue) + Number(e.detail.value
						.other_ven) //游览花费总额
					e.detail.value.leisures = Number(e.detail.value.film) + Number(e.detail.value.vocal_concert) +
						Number(e.detail.value.music_festival) + Number(e.detail.value.other_section) //休闲娱乐花费总额
					e.detail.value.total_above = Number(e.detail.value.aircraft) + Number(e.detail.value.train) +
						Number(e.detail.value.automobile) + Number(e.detail.value.taxi) + Number(e.detail.value
							.car_rental) + Number(e.detail.value.refueling) + Number(e.detail.value.parking) + Number(e
							.detail.value.road_toll) + Number(e.detail.value.other) + Number(e.detail.value.hotel) +
						Number(e.detail.value.civil) + Number(e.detail.value.camp) + Number(e.detail.value
							.other_dation) + Number(e.detail.value.cultural) + Number(e.detail.value.banimal) + Number(
							e.detail.value.specialty) + Number(e.detail.value.other_shop) + Number(e.detail.value
							.scenic) + Number(e.detail.value.amusement) + Number(e.detail.value.theme) + Number(e
							.detail.value.venue) + Number(e.detail.value.other_ven) + Number(e.detail.value.film) +
						Number(e.detail.value.vocal_concert) + Number(e.detail.value.music_festival) + Number(e.detail
							.value.other_section) + Number(e.detail.value.cations) + Number(this.other_tele) //上述花费总金额
					e.detail.value.year = this.year
					e.detail.value.month = this.month
					if (this.user_type = 1) { //如果是自然人.时间分开  如果是法人.拼接字符串  1 自然人  2  法人
						e.detail.value.star_time = this.star_time
						e.detail.value.end_time = this.end_time
					} else {
						e.detail.value.time = this.rangetime
					}
					e.detail.value.uid = this.id
					e.detail.value.type_id = this.tabbarIndex //1  参团  2  非参团 
					e.detail.value.flag = this.user_type

					let data = e.detail.value
					let {
						aircraft,
						train,
						automobile,
						taxi,
						car_rental,
						refueling,
						parking,
						road_toll,
						other,
						other_dation,
						hotel,
						civil,
						camp,
						family,
						leisure,
						other_nome,
						cultural,
						banimal,
						specialty,
						other_shop,
						other_shopName,
						scenic,
						amusement,
						theme,
						venue,
						other_venName,
						other_ven,
						culturales,
						free_park,
						other_free,
						film,
						vocal_concert,
						music_festival,
						other_section,
						cations,
						catering_expenses,
						other_teleName,
						total_people,
						cash,
						card_payment,
						payment
					} = data //结构对象

					console.log('看看是否都有值看看是否都有值看看是否都有值看看是否都有值', this.form1.other_ven, this.youlanmianfeimingmu)


					if (this.pickerData === "请选择时间范围") {
						this.$.toast('请选择时间范围')
						console.log('走过1')
						return
					}
					if (!aircraft) {
						this.$.toast('请输入飞机花费')
						console.log('走过2')
						return
					}
					if (!train) {
						this.$.toast('请输入火车花费')
						console.log('走过3')
						return
					}
					if (!automobile) {
						this.$.toast('请输入汽车花费')
						console.log('走过4')
						return
					}
					if (!taxi) {
						this.$.toast('请输入出租车花费')
						console.log('走过5')
						return
					}
					if (!car_rental) {
						this.$.toast('请输入汽车出租花费')
						console.log('走过6')
						return
					}
					if (!refueling) {
						this.$.toast('请输入加油费')
						console.log('走过7')
						return
					}
					if (!parking) {
						this.$.toast('请输入停车费')
						console.log('走过8')
						return
					}
					if (!road_toll) {
						this.$.toast('请输入过路费')
						console.log('走过9')
						return
					}


					if (!other) {
						this.$.toast('请输入交通其它花费')
						console.log('走过10')
						return
					}
					if ((this.jiaotongqitamingmu == "") && Number(other) > 0) {
						this.$.toast('请输入交通其它花费里的名目')
						console.log('走过10')
						return
					}

					if (!hotel) {
						this.$.toast('请输入酒店花费')
						console.log('走过11')
						return
					}
					if (Number(hotel) > 0 && this.jiudiantian == "") {
						this.$.toast('请输入酒店天数')
						console.log('走过12')
						return
					}
					if (!civil) {
						this.$.toast('请输入民宿花费')
						console.log('走过13')
						return
					}
					if (Number(civil) > 0 && this.minsutian == "") {
						this.$.toast('请输入民宿天数')
						console.log('走过14')
						return
					}
					if (!camp) {
						this.$.toast('请输入营地花费')
						console.log('走过15')
						return
					}
					if (Number(camp) > 0 && this.yingditian == "") {
						this.$.toast('请输入营地天数')
						console.log('走过16')
						return
					}
					if (!other_dation) {
						this.$.toast('请输入住宿其它花费')
						console.log('走过17')
						return
					}
					if (Number(other_dation) > 0 && this.youzhusuqitamingmu == "") {
						this.$.toast('请输入有住宿其它花费里的名目')
						console.log('走过18')
						return
					}
					if (Number(other_dation) > 0 && this.qitatian == "") {
						this.$.toast('请输入有住宿其它花费里的天数')
						console.log('走过19')
						return
					}
					if (!family) {
						this.$.toast('请输入亲友家')
						console.log('走过20')
						return
					}
					if (!leisure) {
						this.$.toast('请输入自有休闲度假居所')
						return
					}
					if (!other_nome) {
						this.$.toast('请输入无住宿花费其它')
						return
					}
					if (Number(this.wuzhusuqitaData) > 0 && this.wuzhusuqitamingmu == "") {
						this.$.toast('请输入无住宿其它花费里的名目')
						return
					}
					if (!cultural) {
						this.$.toast('请输入文创产品花费')
						return
					}
					if (!banimal) {
						this.$.toast('请输入农林牧鱼产品花费')
						return
					}
					if (!specialty) {
						this.$.toast('请输入特产花费')
						return
					}
					// if(!other_shopName ){
					// return}
					if (!other_shop) {
						this.$.toast('请输入购物花费里的其他花费')
						return
					}
					if (Number(this.other_shop ? this.other_shop : other_shop) > 0 && this.gouwuhuafeiqitamingmu ==
						"") {
						this.$.toast('请输入购物花费里的其它花费名目')
						return
					}
					if (!scenic) {
						this.$.toast('请输入景区门票花费')
						return
					}
					if (!amusement) {
						this.$.toast('请输入景区游乐花费')
						return
					}
					if (!theme) {
						this.$.toast('请输入主题乐园门票花费')
						return
					}
					if (!venue) {
						this.$.toast('请输入场馆门票花费')
						return
					}
					if (!other_ven) {
						this.$.toast('请输入游览里的其它花费')
						return
					}
					if (Number(other_ven) > 0 && this.youlanmianfeimingmu == "") {
						this.$.toast('请输入游览里的其它花费名目')
						return
					}


					// 此处后续可能会加游览花费免费里的其它名目非空校验  




					if (!film) {
						this.$.toast('请输入电影花费')
						return
					}
					if (!vocal_concert) {
						this.$.toast('请输入演唱会花费')
						return
					}
					if (!music_festival) {
						this.$.toast('请输入音乐节花费')
						return
					}
					if (!other_section) {
						this.$.toast('请输入其它休闲娱乐花费')
						return
					}
					if (Number(other_section) > 0 && this.xiuxianother_venName == "") {
						this.$.toast('请输入其它休闲娱乐花费名目')
						return
					}
					if (!cations) {
						this.$.toast('请输入邮电通讯花费')
						return
					}
					if (!catering_expenses) {
						this.$.toast('请输入餐饮花费')
						return
					}
					
					if (!this.other_tele) {
						this.$.toast('请输入其它花费')
						return
					}
					if (!other_teleName && Number(this.other_tele) > 0) {
						this.$.toast('请输入其它花费名目')
						return
					}
					if (!total_people) {
						this.$.toast('请输入上述花费所包含人数')
						return
					}
					if (!cash) {
						this.$.toast('请输入现金支付比例')
						return
					}
					if (Number(this.cash) > 100) {
						this.$.toast('现金支付比例只能输入100以内的整数,请重新输入')
						return
					}
					if (!card_payment) {
						this.$.toast('请输入刷卡支付比例')
						return
					}
					if (Number(this.card_payment) > 100) {
						this.$.toast('刷卡支付比例只能输入100以内的整数')
						return
					}
					if (!payment) {
						this.$.toast('请输入其它移动（支付宝、微信、云闪付等）支付比例')
						return
					}
					if (Number(this.payment) > 100) {
						this.$.toast('移动支付比例只能输入100以内的整数')
						return
					}
					if ((Number(this.cash) + Number(this.card_payment) + Number(this.payment)) != 100) {
						this.$.toast('支付比列填写有误，总和不等于100%，请重新输入')
						return
					}
					e.detail.value.other = e.detail.value.other + '-' + this.jiaotongqitamingmu //交通花费格式化
					e.detail.value.other_dation = e.detail.value.other_dation + '-' + this.qitatian + '天-' + this
						.youzhusuqitamingmu //有住宿花费格式化
					e.detail.value.other_nome = e.detail.value.other_nome + '-' + this.wuzhusuqitamingmu //无住宿花费格式化
					e.detail.value.other_shop = e.detail.value.other_shop + '-' + this.gouwuhuafeiqitamingmu //购物花费格式化
					e.detail.value.other_ven = e.detail.value.other_ven + '-' + this.youlanmianfeimingmu //游览花费其它格式化
					e.detail.value.other_tele = e.detail.value.other_tele + '-' + e.detail.value
						.other_teleName //邮电通讯下面的其它花费格式化
					e.detail.value.other_section = e.detail.value.other_section + '-' + this
						.xiuxianother_venName //休闲娱乐花费其它格式化
					e.detail.value.hotel = e.detail.value.hotel + '-' + this.jiudiantian //酒店花费其它格式化
					e.detail.value.civil = e.detail.value.civil + '-' + this.minsutian //民宿花费其它格式化
					e.detail.value.camp = e.detail.value.camp + '-' + this.yingditian //营地花费其它格式化
					e.detail.value.jizhang_score = jizhang_score //积分累计赋值
					e.detail.value.adopt_id=1  //1  待审批   2  未通过  3  已通过
					e.detail.value.id=this.ID?this.ID:""  //重新提交传递的ID
					let url = 'https://jizhang.xqyu.cn/index.php/api/natural/get_nomis'
					this.parmasData = e.detail.value
					this.parmasUrl = url
					console.log('营地格式', e.detail.value)
					this.validateRequest(e.detail.value, url)
				}
			},
			formRequest: function(params, url) {
				var that = this
				console.log('传递的传递的传递的传递的传递的传递的', params, this.wuzhusuqitaData, this.wuzhusuqitamingmu)

				params.star_time = params.star_time.replace(/-/g, '/') //进行格式转换全局替换。  否则接口请求失败   全局替换-  符号替换为/
				params.end_time = params.end_time.replace(/-/g, '/') //进行 格式转换全局替换。  否则接口请求失败  全局替换-  符号替换为/
				console.log('this.object。',this.object.adopt_id)
			    if(this.object.adopt_id==2){
					// 只有重新提交的时候才删除uid  传id
					delete params.uid
				}
				delete params.other_shopName //删除对象属性
				delete params.otherName //删除对象属性
				delete params.other_teleName //删除对象属性
				delete params.other_venName //删除对象属性
				console.log('最终要提交的传过来的数据是最终要提交的传过来的数据是最终要提交的传过来的数据是', params, this.other_price_off, this.other_price, this.form)
				
           
				uni.showModal({
					title: '温馨提示',
					content: '确认提交后不可修改',
					success: function(res) {
						if (res.confirm) {
							console.log('开始发送请求了', that.parmasData, that.parmasUrl, url)
							that.$.tipLoading('提交中')
							uni.removeStorageSync('listData') // 清空缓存记账信息
							uni.request({
								method: 'POST',
								url: url,
								dataType: 'json',
								header: {
									'content-type': 'application/x-www-form-urlencoded'
								},
								data: params,
								success: function(res) {
									console.log('是否提交成功', res)
									setTimeout(function() {
										that.$.hideLoading()
									}, 1500)
									if (res.data.code == 1) {
										that.$.successToast(res.data.msg)
										//返回上一页
										setTimeout(function() {
											uni.navigateBack({
												delta: 1
											})
										}, 1500)
									} else {
										setTimeout(function() {
											that.$.hideLoading()
										}, 1500)
										that.$.toast(res.data.msg)
									}
								}
							});
						} else if (res.cancel) {}
					}
				});

			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		.container-back {
			padding: 30rpx 20rpx 20rpx 20rpx;

			// height: 100%;
			.travle-list-item {
				border-radius: 15rpx;
				padding: 10rpx;
			}

			.travel-list {
				border-radius: 15rpx;
				padding: 10rpx;
				margin-bottom: 20rpx;

				.travel-img {
					width: 80rpx;
					height: 80rpx;
					border-radius: 15rpx;
					margin-right: 20rpx;
				}

				.txextBefor {
					border: 1px solid red;
				}

				.before::before {
					content: '';
					width: 15rpx;
					height: 15rpx;
					border-radius: 50%;
					background-color: #1D69FC;
					position: absolute;
					margin-top: 12rpx;
					// margin-left: -30rpx;
				}
			}

			.travel-img {
				width: 80rpx;
				height: 80rpx;
				border-radius: 15rpx;
			}

			.tabbar-list {
				// width: 100%;
				color: #b0b0b0;
				font-size: 28rpx;
				width: 150rpx;
				height: 70rpx;
				line-height: 70rpx;
				font-weight: bold;
			}

			.active {
				background: linear-gradient(159deg, #80e6fc 0%, #0051ff 99%);
				// width: 100%;
				color: #FFFFFF;
				font-size: 30rpx;
				width: 150rpx;
				height: 70rpx;
				line-height: 70rpx;
				border-bottom-left-radius: 15rpx;
				border-top-right-radius: 15rpx;
			}

			.home-input {
				margin-bottom: 40rpx;

				.home-input-button {
					width: 220rpx;
					height: 76rpx;
					line-height: 70rpx !important;
					background: linear-gradient(159deg, #80e6fc 0%, #0051ff 99%);
					color: #FFFFFF;
				}
			}

			.home-img {
				margin-bottom: 30rpx;

				.home-item {
					width: 80rpx;
					height: 80rpx;
					border-radius: 15rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}
			}
		}

		.button-submit {
			background-color: #FFFFFF;
			position: fixed;
			margin-right: 20rpx;
			bottom: 0;
			width: 100%;
			padding-bottom: 30rpx;
			z-index: 1000;
			padding-left: 20rpx;
			padding-right: 20rpx;
			padding-top: 20rpx;

			.button {
				border-radius: 15rpx;

				button {
					background: linear-gradient(159deg, #80e6fc 0%, #0051ff 99%);
					// width: 100%;
					color: #FFFFFF;
					font-size: 30rpx;
				}
			}
		}
	}
</style>
